package system;

import java.sql.Date;

public class Customer {

	//Constructors
	public Customer(){
	}
	public Customer(String contactId, Date contactDate, String description,
			String clientId, String saleId, int contactDuration,
			boolean permissionStatus, String marketSegmentStatus, int rate,
			int interestLevel) {
		ContactId = contactId;
		ContactDate = contactDate;
		Description = description;
		ClientId = clientId;
		SaleId = saleId;
		ContactDuration = contactDuration;
		PermissionStatus = permissionStatus;
		MarketSegmentStatus = marketSegmentStatus;
		Rate = rate;
		InterestLevel = interestLevel;
	}

	private String ContactId;
	public String getContactId() {
		return ContactId;
	}
	public void setContactId(String contactId) {
		ContactId = contactId;
	}
	
	private Date ContactDate;
	private String Description;
	private String ClientId;
	private String SaleId;
	private int ContactDuration;
	private boolean PermissionStatus;
	private String MarketSegmentStatus;
	private int Rate;
	private int InterestLevel;
	
	public Date getContactDate() {
		return ContactDate;
	}
	public void setContactDate(Date contactDate) {
		ContactDate = contactDate;
	}
	public String getDescription() {
		return Description;
	}
	public void setDescription(String description) {
		Description = description;
	}
	public String getClientId() {
		return ClientId;
	}
	public void setClientId(String clientId) {
		ClientId = clientId;
	}
	public String getSaleId() {
		return SaleId;
	}
	public void setSaleId(String saleId) {
		SaleId = saleId;
	}
	public int getContactDuration() {
		return ContactDuration;
	}
	public void setContactDuration(int contactDuration) {
		ContactDuration = contactDuration;
	}
	public boolean isPermissionStatus() {
		return PermissionStatus;
	}
	public void setPermissionStatus(int permissionStatus) {
		if(permissionStatus==1)
			PermissionStatus=true;
		else if(permissionStatus==0)
			PermissionStatus=false;
		else{
			try {
				throw new Exception("Invalid permissionStatus!");
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
	}
	public String getMarketSegmentStatus() {
		return MarketSegmentStatus;
	}
	public void setMarketSegmentStatus(String marketSegmentStatus) {
		this.MarketSegmentStatus = marketSegmentStatus;
	}
	public int getRate() {
		return Rate;
	}
	public void setRate(int rate) {
		Rate = rate;
	}
	public int getInterestLevel() {
		return InterestLevel;
	}
	public void setInterestLevel(int interestLevel) {
		InterestLevel = interestLevel;
	}
	
	/*@Override
	public String toString() {
		return "Customer [ContactId=" + ContactId + ", ContactDate="
				+ ContactDate + ", Description=" + Description + ", ClientId="
				+ ClientId + ", SaleId=" + SaleId + ", ContactDuration="
				+ ContactDuration + ", PermissionStatus=" + PermissionStatus
				+ ", MarketSegmentStatus=" + MarketSegmentStatus + ", Rate="
				+ Rate + ", InterestLevel=" + InterestLevel + "]";
	}*/
}
